<?php

declare(strict_types=1);

namespace App\Task;

use App\Service\QueueService;
use Hyperf\Crontab\Annotation\Crontab;
use Hyperf\Di\Annotation\Inject;

/**
 * @Crontab(name="ScanActivityPush", rule="* * * * *", callback="execute", memo="扫描需要推送素材的活动")
 */
class ScanActivityPush
{
    /**
     * @Inject()
     * @var QueueService
     */
    protected $job;

    public function execute()
    {
        $this->job->pushActivity();
    }
}
